import request from '@/utils/request'

// 新增
export function save(data) {
  return request({
    url: '/reimbursement/save',
    method: 'post',
    data
  })
}
// 编辑
export function update(data) {
  return request({
    url: '/reimbursement/update',
    method: 'post',
    data
  })
}
// 删除
export function del(data) {
  return request({
    url: '/reimbursement/delete',
    method: 'post',
    data
  })
}
// 获取列表
export function findList(companyId) {
  return request({
    url: '/reimbursement/findAllByCompanyId',
    method: 'get',
    params: { companyId: companyId }
  })
}
// 根据id获取实体类
export function findById(reimbursementId) {
  return request({
    url: '/reimbursement/findById',
    method: 'get',
    params: { reimbursementId }
  })
}
// 报销确认支付
export function confirm(data) {
  return request({
    url: '/reimbursement/confirm',
    method: 'post',
    data
  })
}
